<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <div class="layui-card">
            <div class="layui-card-header well">
                <div class="layui-col-xs6">
                    <h3>图片管理</h3>
                </div>
                <div class="layui-col-xs6 text-right">
                    <!-- <a href="{:url('AdminNotice/add')}" class="layui-btn layui-btn-normal">添加公告动态</a> -->
                </div>
            </div>

            <div class="layui-card-body">
                <table class="layui-table" >
                    <thead>
                        <tr>
                            <th width="50">ID</th>
                            <th>栏目</th>
                            <th>图片</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="data" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.name}</td>
                            <td>
                                <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo['img'])}');">
                                    <i class="fa fa-photo fa-fw"></i>
                                </a>
                            </td>
                            <td>
                                <a href="{:url('AdminImg/edit',array('id'=>$vo['id']))}" class="layui-btn layui-btn-xs">{:lang('EDIT')}</a>
                                <!-- <a href="{:url('AdminNotice/delete',array('id'=>$vo['id']))}" class="js-ajax-delete layui-btn layui-btn-danger layui-btn-xs">{:lang('DELETE')}</a> -->
                            </td>
                        </tr>
                        </foreach>
                    </tbody>
                </table>
            </div>
        </div>        
    </div>

<include file="public@footer"/>
